<%@ page language="java" import="com.njth.beans.*,com.njth.dao.*,java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>南京同虹科贸，打造专业卫浴系统,TOTO专卖，TOTO洁具。</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="<%=basePath%>com/njth/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath%>com/njth/css/layout.css" rel="stylesheet" type="text/css" />
</head>

<body id="page7">
	<div id="main">
		<!-- header -->
		<div id="header">
			<!--Valid flash version 8.0-->
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
					  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
					  width="980" height="430">
			 <param name="movie" value="<%=basePath%>com/njth/flash/Header_f8.swf?button=0" /> 
			 <param name="quality" value="high" />
			 <param name="menu" value="false" />
			 <!--[if !IE]> <-->
			 <object data="flash/Header_f8.swf?button=0"
						width="980" height="430" type="application/x-shockwave-flash">
			  <param name="quality" value="high" />
			  <param name="menu" value="false" />
			  <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
			  FAIL (the browser should render some flash content, not this).
			 </object>
			 <!--> <![endif]-->
			</object>
		</div>
		<!-- content -->
		<div id="content">
			<div class="bgd">
				<div class="inner">
					<div class="extra">
						<a href="#"><img alt="" src="<%=basePath%>com/njth/images/ing.jpg" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"><img alt="" src="<%=basePath%>com/njth/images/banner2.jpg" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"><img alt="" src="<%=basePath%>com/njth/images/banner3.jpg" /></a>
					</div>
					<div class="article">
						<div class="indent">
							<h2>同虹新闻</h2>
							<%
							String var=request.getParameter("nid");
							if(var==null)response.sendError(404);
							News news=null;
							try{
								int id=Integer.parseInt(var);
								NewsDAO dao=(NewsDAO)DaoConfig.getDao(NewsDAO.class);
								news=dao.getNews(id);
							}catch(Exception e){
								response.sendError(404);
							}
							if(news==null)response.sendError(404);
							 %>
							<h3><%=news.getTitle() %></h3> 
							
							<p><%=news.getContext().replace("\n","<br/>") %></p>
							<p align ="center"><img src="<%=basePath%>com/njth/images/ing.jpg"></img></p>
							E-mail: <a class="link2" href="#">http://mail.njtoto.com</a>
						</div>
					</div>
				</div>
			</div>
			
		</div>
		
		<!-- footer -->
		<div id="footer">
			<div class="fleft">
				NJTOTO &copy; 2009 | <a href="index-6.html">ALL right reserved</a>
			</div>
			<div class="fright">
				<a href="#"><img alt="" src="<%=basePath%>com/njth/images/footer_img1.jpg" /></a><a href="#"><img alt="" src="<%=basePath%>com/njth/images/footer_img2.jpg" /></a><a href="#"><img alt="" src="<%=basePath%>com/njth/images/footer_img3.jpg" /></a><a href="#"><img alt="" src="<%=basePath%>com/njth/images/footer_img4.jpg" /></a>
			</div>
		</div>
	</div>
</body>
</html>